package com.sc.vo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sms_student", schema = "study_club")
public class StudentVo implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 编号
     */
    private String sno;

    /**
     * 密码（默认为123456）
     */
    private String passwd;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年级
     */
    private Integer gradeId;
    private String grade;

    /**
     * 学校
     */
    private Integer schoolId;
    private String school;

    /**
     * 学院
     */
    private Integer collageId;
    private String collage;

    private List<Integer> scmIds;

    /**
     * 专业
     */
    private Integer majorId;
    private String major;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 电话
     */
    private String phone;

    /**
     * 微信
     */
    private String wechat;

    /**
     * QQ
     */
    private String qq;

    /**
     * 销售
     */
    private Long salesmanId;
    private String salesmanName;

    /**
     * 班级ID（外键）
     */
    private Long clazzId;

    /**
     * 班级名称
     */
    private String clazzName;

    /**
     * 身份证
     */
    private String idCard;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String info;
    @Column(isLogicDelete = true)
    private Integer isDelete;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    /**
     * 更新时间
     */
    private LocalDateTime updated;

    /**
     * 版本
     */
    @Column(version = true)
    private Integer version;

}
